-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HUDI-8782] BulkInsertWriterHelper parallel close #12518
base: master
Are you sure you want to change the base?
[HUDI-8782] BulkInsertWriterHelper parallel close #12518
Conversation
}).join(); | ||
try { | ||
executorService.shutdown(); | ||
executorService.awaitTermination(24, TimeUnit.DAYS); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
24 days?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry! 24 hours. this indicates a long timeout , aiming to waiting for all handles closed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still too long, the close should be fast right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still too long, the close should be fast right?
I agree, close should be fast. here awaitTermination is actually a timeout, 24 Hours is too long , how about wait for a Flink CP interval?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you estimate the normal time cost for the close? Maybe just 1 minute should be enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 minute maybe not enough when HDFS is busy. or we can make this a config and set default value 1 minute?
Change Logs
close
is slow when large amount rowCreateHandles in BulkInsertWriterHelper, this PR close this handles in parallel.Impact
hudi-flink-datasource
Risk level (write none, low medium or high below)
Low
Documentation Update
None
Contributor's checklist